export default {
	hot: {
		url: function() {
			return '/discover/playlist/?cat=%E6%AC%A7%E7%BE%8E'
		}
	},
	discover: {
		url: function() {
			return '/#/discover/album/'
		}
	},
	playlist: {
		url: function(params) {
			return '/api/playlist/detail?id=' + params.id
		}
	},
	suggest: {
		url: '/weapi/search/suggest/web?csrf_token=',
		params: function(params) {
			params = {
				s: params.content,
				limit: 2,
				offset: params.offset
			}
			params = window.asrsea1(JSON.stringify(params))
			return params
		}
	},
	search: {
		url: function(params) {
			return '/api/search/get/?s=' + params.keywords + '&limit=20&type=' + params.type + '&offset=' + params.offset
		}
	},
	play: {
		url: 'https://music.163.com/weapi/song/enhance/player/url?csrf_token=',
		params: function(params) {
			params = {
				ids: [params.id],
				br: '128000'
			}
			params = window.asrsea1(JSON.stringify(params))
			return params
		}
	}
}
